package ltd.ueic.allypay.alipay.controller;

import ltd.ueic.extra.support.web.ResponseStatusInterface;

/**
 * @author Kevin Yang
 * @version 1.0.0
 * Created by Kevin Yang on 2018/12/5 9:14.
 */
public enum PayResponseStatus implements ResponseStatusInterface {
    /**
     * 支付回调参数验证失败
     */
    PAY_RETURN_PARAM_VERIFY_FAIL("支付回调参数验证失败"),
    TRADE_QUERY_ERROR("统一收单线下交易查询接口异常"),
    TRADE_CLOSE_ERROR("统一收单交易关闭接口异常"),
    TRADE_REFUND_ERROR("统一收单交易退款接口异常"),
    TRADE_REFUND_QUERY_ERROR("统一收单交易退款查询接口异常"),
    BILL_DOWNLOADURL_QUERY_ERROR("查询对账单下载地址接口异常");

    private String message;

    PayResponseStatus(String message) {
        this.message = message;
    }

    @Override
    public String code() {
        return this.name();
    }

    @Override
    public String message() {
        return this.message;
    }
}
